package com.shuaixin.web.model;


import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by wby on 2015/5/23.
 */
@Entity
@Table(name = "T_MESSAGE")
public class Message implements Serializable {



    private int id;
    private String uid;
    private String name;
    private String content;
    private String img;
    private int imgid;
    private String address;
    private double lon;
    private double lat;
    private String createdate;

    public Message() {
        super();
    }

    @Id
    @GeneratedValue
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public int getImgid() {
        return imgid;
    }

    public void setImgid(int imgid) {
        this.imgid = imgid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getCreatedate() {
        return createdate;
    }

    public void setCreatedate(String createdate) {
        this.createdate = createdate;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", uid='" + uid + '\'' +
                ", name='" + name + '\'' +
                ", content='" + content + '\'' +
                ", img='" + img + '\'' +
                ", imgid=" + imgid +
                ", address='" + address + '\'' +
                ", lon=" + lon +
                ", lat=" + lat +
                ", createdate='" + createdate + '\'' +
                '}';
    }
}
